<?php
namespace Club\Model;
use Think\Model;
class WithdrawModel extends Model {
	protected $_auto = [
		["create_time", "strtotime", 3, "function"],
		["update_time", "strtotime", 3, "function"],
		["create_time", "time", 1, "function"],
		["update_time", "time", 2, "function"],
	];
	protected $_validate = [
		["id", "require", "ID必须填写!"],
		["user_id", "require", "用户必须填写!"],
		["amount", "require", "金额必须填写!"],
		["state", "require", "状态必须填写!"],
		["create_time", "require", "创建时间必须填写!"],
		["update_time", "require", "更新时间必须填写!"],
	];
	public $excel = false;
	public $delete = false;
	public $update = false;
	public $fieldMap = [
		"id"=>[
			"type"=>"input",
			"name"=>"ID",
			"lists"=>true,
			"search"=>true,
			"input"=>false,
			"required"=>true,
			"detail"=>true,
			"excel"=>true,
			"content"=>"",
			"list_specify"=>"",
			"update_specify"=>"",
			"detail_specify"=>"",
		],
		"user_id"=>[
			"type"=>"input",
			"name"=>"用户",
			"lists"=>false,
			"search"=>false,
			"input"=>false,
			"required"=>true,
			"detail"=>true,
			"excel"=>true,
			"content"=>"user,id,name,input",
			"list_specify"=>"",
			"update_specify"=>"",
			"detail_specify"=>"",
		],
		"amount"=>[
			"type"=>"input",
			"name"=>"金额",
			"lists"=>true,
			"search"=>false,
			"input"=>true,
			"required"=>true,
			"detail"=>true,
			"excel"=>true,
			"content"=>"",
			"list_specify"=>"",
			"update_specify"=>"",
			"detail_specify"=>"",
		],
		"state"=>[
			"type"=>"select",
			"name"=>"状态",
			"lists"=>true,
			"search"=>false,
			"input"=>false,
			"required"=>true,
			"detail"=>true,
			"excel"=>true,
			"content"=>"待处理,已处理",
			"list_specify"=>"",
			"update_specify"=>"",
			"detail_specify"=>"",
		],
		"create_time"=>[
			"type"=>"datetime",
			"name"=>"创建时间",
			"lists"=>false,
			"search"=>false,
			"input"=>false,
			"required"=>true,
			"detail"=>true,
			"excel"=>true,
			"content"=>"",
			"list_specify"=>"",
			"update_specify"=>"",
			"detail_specify"=>"",
		],
		"update_time"=>[
			"type"=>"datetime",
			"name"=>"更新时间",
			"lists"=>false,
			"search"=>false,
			"input"=>false,
			"required"=>true,
			"detail"=>true,
			"excel"=>true,
			"content"=>"",
			"list_specify"=>"",
			"update_specify"=>"",
			"detail_specify"=>"",
		],
	];
}